package pl.edu.agh.logview.webservice;
import javax.jws.WebParam;
import javax.jws.WebService;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import pl.edu.agh.logview.webservice.MessageBean;


@WebService(endpointInterface = "agh.sem7.ps.logserver.LogServerReceiver",
            serviceName = "LogServerReceiver")
public class LogServerReceiverImpl implements LogServerReceiver {

	@Override
	public String pushMessage(@WebParam(name = "messageBean") MessageBean messageBean) {
		System.out.println("RECEIVER : " + ReflectionToStringBuilder.toString(messageBean));
		return ReflectionToStringBuilder.toString(messageBean);
	}


}